package com.tender.facade.fallback;

import com.tender.facade.ProviderFacade;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class ProviderFactory implements FallbackFactory<ProviderFacade> {
    @Override
    public ProviderFacade create(Throwable cause) {

        return new ProviderFacade() {
            @Override
            public String provideData() {
                return null;
            }
        };
    }
}
